import random
f = open(r'hello.txt','w+')
f.write("hello!world!\n")
for i in xrange(1,11):
	for j in xrange(1,11):
		a = random.randint(0,9)
		f.write("%s"%(a))
	f.write("\n")
f.close()
f = open(r'hello.txt','r')
print f.read()
f.close()
